<%--
  Created by IntelliJ IDEA.
  User: xiaoji
  Date: 2014/12/15
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib prefix="spring" uri="/WEB-INF/lib/spring.tld"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title><spring:message code='usercenter.index.title' /></title>
    <link href="${path}/style/acg/css/style.css" rel="stylesheet" type="text/css" />
    <script src="${path}/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<jsp:include page="../public/header.jsp"></jsp:include>
<jsp:include page="../usercenter/leftMenu.jsp"></jsp:include>

<div class="member_box">
    <div class="member_title">
        <spring:message code='usercenter.userBaile.msg1' />
    </div>
    <div class="member_account">
        <div class="member_form">
            <ul>
                <li class="clearfix">
                    <dl class="clearfix">
                        <dt><spring:message code='usercenter.userBaile.msg2' /></dt>
                        <dd>
                            <textarea id="intro_complete" name="intro_complete" class="text650">${intro}</textarea>
                        </dd>
                    </dl>
                </li>
                <li class="clearfix">
                    <dl class="clearfix">
                        <dt>&nbsp;</dt>
                        <dd><input type="button" id="save" value="<spring:message code='usercenter.userBaile.msg3' />" class="btn60"></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    $(function(){
        //更新用户资料
        $("#save").click(function(){
            $.post("${path}/usercenter/updateUserBaileInfo.html",{
                intro:$("#intro_complete").val()
            },function(data){
                if(data.errormsg == undefined){
                    alert("<spring:message code='usercenter.userBaile.msg4' />");
                }else{
                    alert(data.errormsg);
                }
            },"json");
        });
    });
</script>
<jsp:include page="../usercenter/leftMenuEnd.jsp"></jsp:include>
<jsp:include page="../public/footer.jsp"></jsp:include>
</body>
</html>